package bean;

import java.io.Serializable;

/**
 * reply
 * 
 * @author
 */
public class Reply implements Serializable {
	private Integer replyid;

	private Integer userid;

	private String replycontent;

	private Integer replytoid;

	private Integer replytype;

	private String type;

	private String time;

	private String a;

	private String b;

	private String c;

	private static final long serialVersionUID = 1L;

	public Integer getReplyid() {
		return replyid;
	}

	public void setReplyid(Integer replyid) {
		this.replyid = replyid;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getReplycontent() {
		return replycontent;
	}

	public void setReplycontent(String replycontent) {
		this.replycontent = replycontent;
	}

	public Integer getReplytoid() {
		return replytoid;
	}

	public void setReplytoid(Integer replytoid) {
		this.replytoid = replytoid;
	}

	public Integer getReplytype() {
		return replytype;
	}

	public void setReplytype(Integer replytype) {
		this.replytype = replytype;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getA() {
		return a;
	}

	public void setA(String a) {
		this.a = a;
	}

	public String getB() {
		return b;
	}

	public void setB(String b) {
		this.b = b;
	}

	public String getC() {
		return c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		Reply other = (Reply) that;
		return (this.getReplyid() == null ? other.getReplyid() == null : this.getReplyid().equals(other.getReplyid()))
				&& (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
				&& (this.getReplycontent() == null ? other.getReplycontent() == null
						: this.getReplycontent().equals(other.getReplycontent()))
				&& (this.getReplytoid() == null ? other.getReplytoid() == null
						: this.getReplytoid().equals(other.getReplytoid()))
				&& (this.getReplytype() == null ? other.getReplytype() == null
						: this.getReplytype().equals(other.getReplytype()))
				&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
				&& (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
				&& (this.getA() == null ? other.getA() == null : this.getA().equals(other.getA()))
				&& (this.getB() == null ? other.getB() == null : this.getB().equals(other.getB()))
				&& (this.getC() == null ? other.getC() == null : this.getC().equals(other.getC()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getReplyid() == null) ? 0 : getReplyid().hashCode());
		result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
		result = prime * result + ((getReplycontent() == null) ? 0 : getReplycontent().hashCode());
		result = prime * result + ((getReplytoid() == null) ? 0 : getReplytoid().hashCode());
		result = prime * result + ((getReplytype() == null) ? 0 : getReplytype().hashCode());
		result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
		result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
		result = prime * result + ((getA() == null) ? 0 : getA().hashCode());
		result = prime * result + ((getB() == null) ? 0 : getB().hashCode());
		result = prime * result + ((getC() == null) ? 0 : getC().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", replyid=").append(replyid);
		sb.append(", userid=").append(userid);
		sb.append(", replycontent=").append(replycontent);
		sb.append(", replytoid=").append(replytoid);
		sb.append(", replytype=").append(replytype);
		sb.append(", type=").append(type);
		sb.append(", time=").append(time);
		sb.append(", a=").append(a);
		sb.append(", b=").append(b);
		sb.append(", c=").append(c);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
}